<?php
$uploaddir = './uploads/';
$file = $uploaddir . basename($_FILES['uploadfile']['name']); 

if (move_uploaded_file($_FILES['uploadfile']['tmp_name'], $file)) {
header("Location: ../home.php
} else {
	echo "Sorry your picture didn't upload";
	header("refresh: 10; url=../home.php");
}
?>